package com.example.shoppingmall.pojo;

public class Page {
    private int pageNo;
    private int pageSize=6;
    private int count;
    private int pageSum;

    public int getPageNo() {
        return pageNo;
    }
    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public int getCount() {
        return count;
    }
    public void setCount(int count) {
        this.count = count;
        if(count>0){
            pageSum=this.count%pageSize==0?(this.count/pageSize):(this.count/pageSize+1);
        }
    }
    public int getPageSum() {
        return pageSum;
    }
    public void setPageSum(int pageSum) {
        this.pageSum = pageSum;
    }
}
